<?php
/* @var $this GoodsInController */
/* @var $dataProvider CActiveDataProvider */

$this->breadcrumbs=array(
	'Goods Ins',
);

$this->menu=array(
	array('label'=>'管理入库信息', 'url'=>array('index')),
	array('label'=>'入库记录查看', 'url'=>array('viewAlready')),
);
?>

<h1>订货列表</h1>

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'goods-order-grid',
	'dataProvider'=>$dataProvider,
	'columns'=>array(
		'id',
		'goodsid',
		'count',
		'state',
		array('name'=>'supplier','value'=>'$data->supplier->name'),
		array(
			'class'=>'CLinkColumn',
			'header'=>'操作',
			'label'=>'入库',
			'urlExpression'=>'Yii::app()->createUrl("goodsIn/create",array("id"=>"$data->id"))'
		),
	),
)); ?>

